package com.shizhanzhe.gxb.widget;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.shizhanzhe.gxb.R;
import com.youth.banner.loader.ImageLoader;

/**
 *
 * @author YJ
 * @date 2019/1/17
 */
public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        imageView.setScaleType(ImageView.ScaleType.FIT_XY);
        Glide.with(context).load(path).apply(new RequestOptions().error(R.mipmap.banner_rx)).into(imageView);
    }
}
